﻿namespace PorteringManagement.RouteEngine
{
    using System.Collections.Generic;
    using System.Globalization;

    public class Route
    {
        private readonly string identifier;

        public Route(string identifier)
        {
            this.identifier = identifier;
            this.Cost = int.MaxValue;
            this.Connections = new List<Connection>();
        }

        public IList<Connection> Connections { get; set; }

        public int Cost { get; set; }

        public override string ToString()
        {
            return string.Format(CultureInfo.InvariantCulture, "Id:{0} Cost:{1}", this.identifier, this.Cost);
        }
    }
}
